package com.home.zqt.platform.controller;

import com.google.common.collect.Lists;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author soon
 * @description: TODO
 * @date 2019-06-01 11:54
 **/
@RestController("testController")
public class TestController {

    @GetMapping(value = "/test/{word}")
    public String sayHello(@PathVariable("word") String word) {
        return StringUtils.join(Lists.newArrayList("Hello", word), " ");
    }

    /**
     * 删除菜单
     *  mj_employee_authority_ref【删除与员工其他菜单不重叠的权限】
     *  mj_employee_menu_ref
     *  mj_menu_authority_ref
     *  mj_edition_menu_ref
     *  mj_menu
     * @param id
     */
    @DeleteMapping(value = "/menu/{id}")
    public void deleteMenu(@PathVariable("id") Long id) {

    }
}
